home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / ds3100.md / sys / ptrace.h < prev   
C/C++ Source or Header  |  1991-07-02  |  2KB  |  66 lines

  1. /*
  2.  * ptrace.h --
  3.  *
  4.  *    Declarations of ...
  5.  *
  6.  * Copyright 1991 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that this copyright
  10.  * notice appears in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /sprite/lib/forms/RCS/proto.h,v 1.7 91/02/09 13:24:52 ouster Exp $ SPRITE (Berkeley)
  16.  */
  17.  
  18. #ifndef _SYS_PTRACE_H
  19. #define _SYS_PTRACE_H
  20.  
  21. #define PT_TRACE_ME    0
  22. #define PT_READ_I    1
  23. #define PT_READ_D    2
  24. #define PT_READ_U    3
  25. #define PT_WRITE_I    4
  26. #define PT_WRITE_D    5
  27. #define PT_WRITE_U    6
  28. #define PT_CONTINUE    7
  29. #define PT_KILL        8
  30. #define PT_STEP        9
  31.  
  32. #ifdef sprite
  33. #define PT_ATTACH    10
  34. #define PT_DETACH    11
  35. #endif
  36.  
  37. #define GPR_BASE    0
  38. #define NGP_REGS    32
  39. #define FPR_BASE    (GPR_BASE+NGP_REGS)
  40. #define NFP_REGS    32
  41.  
  42. #define SIG_BASE    (FPR_BASE+NFP_REGS)
  43. #define NSIG_HNDLRS    32
  44.  
  45. #define SPEC_BASE    (SIG_BASE+NSIG_HNDLRS)
  46. #define PC        (SPEC_BASE + 0)
  47. #define CAUSE        (SPEC_BASE + 1)
  48. #define MMHI        (SPEC_BASE + 2)
  49. #define MMLO        (SPEC_BASE + 3)
  50. #define FPC_CSR        (SPEC_BASE + 4)
  51. #define FPC_EIR        (SPEC_BASE + 5)
  52. #define TRAPCAUSE    (SPEC_BASE + 6)
  53. #define TRAPINFO    (SPEC_BASE + 7)
  54. #define NSPEC_REGS    8
  55. #define NPTRC_REGS    (SPEC_BASE + NSPEC_REGS)
  56.  
  57. #define CAUSEEXEC    1
  58. #define CAUSEFORK    2
  59. #define CAUSEWATCH    3
  60. #define CAUSESINGLE    4
  61. #define CAUSEBREAK    5
  62. #define CAUSETRACEON    6
  63.  
  64. #endif /* _SYS_PTRACE_H */
  65.  
  66.